package com.itheima.test12;
/*
《生产者和消费者案例》
 */
public class Test12 {
    public static void main(String[] args) {
        Object o = new Object();
        Desk desk = new Desk(false, 10, o);
        Cookie cookie = new Cookie(desk);
        Foodie foodie = new Foodie(desk);

        cookie.start();
        foodie.start();
    }
}
